package data
{
	import assets.eviley;
	import assets.smiley;
	
	import flash.geom.Point;

	public class UnitData
	{
		public var pos:Point;
		//public var px_pos:Point;
		
		public var sprite_class:Class;
		
		public var team:int;
		[Bindable] public var theme_color:uint;
		
		public var alive:Boolean;
		public var idx:int;
		
		/**
		 * Does this player shoot to the right?
		 */
		public function get shoots_right():Boolean {
			return this.team == 0;
		}
		
		public function UnitData(my_team:int, idx:int) {
			this.team = my_team;
			this.alive = true;
			this.idx = idx;
			
			this.sprite_class = (my_team == 0) ? smiley : eviley;
			this.theme_color = (my_team == 0) ? 0xFFCC33 : 0xFF6600;
		}
	}
}